//while语句测试，求1到10的数字之和
int main(){
  int x;
  int sum = 0;

  x = 1;
  while (x <= 10){
    sum = sum + x;
    x = x + 1;
  }
  printf(x);
  printf(sum);
}